-- GENERATED SPELL FOR [Lady Jaina Proudmoore] --


function spell0_31418(pUnit, Event) --@Deep Freeze,Self--
pUnit:FullCastSpellOnTarget(60511,pUnit)
pUnit:RegisterEvent('Sorts_31418', 20000, 1)
end

function spell1_31418(pUnit, Event) --@Materialize,Self--
pUnit:FullCastSpellOnTarget(34804,pUnit)
pUnit:RegisterEvent('Sorts_31418', 577, 1)
end

function Sorts_31418(pUnit, Event)
local choix_sorts_31418 = math.random(0, 1)
if choix_sorts_31418 == 0 then
pUnit:RegisterEvent('spell0_31418', 1, 1)
end
if choix_sorts_31418 == 1 then
pUnit:RegisterEvent('spell1_31418', 1, 1)
end
end

function mob31418_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31418', math.random(1500, 3000), 1)
end

function mob31418_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31418_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31418_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31418, 1, 'mob31418_Action')
RegisterUnitEvent(31418, 2, 'mob31418_Leave')
RegisterUnitEvent(31418, 3, 'mob31418_Kill')
RegisterUnitEvent(31418, 4, 'mob31418_Die')
